﻿using System.Data;
using NUnit.Framework;
using Smartkernel.Data;

namespace Smartkernel.NUnitTest.Data
{
    [Category("Data")]
    [TestFixture]
    public class SmartSqlServerTest
    {
        [Test]
        public void Test()
        {
            ////【01】批量拷贝数据（涉及方法：BulkCopy）
            //string sqlConnectionString = @"Server=SmartKernel-PC\SQLSERVER2005;Database=Test;Uid=sa;Pwd=sa";
            //string sentence = "SELECT * FROM Person";
            //DataTable dataTable = new DataTable();
            //SmartDatabase.Fill(sqlConnectionString, sentence, dataTable);
            //SmartSqlServer.BulkCopy(sqlConnectionString, dataTable, "Person");
        }
    }
}
